#ifndef RES_IMAGE_H
#define RES_IMAGE_H
#include <string>

#include "boost/shared_ptr.hpp"

#include "SFML/Graphics.hpp"

#include "ResourceDatabase.h"

class ResImage : public sf::Image
{
public:
    ResImage(std::string filename, int columns, int rows);

    int getColumns() const;
    void setColumns(int columns);

    int getRows() const;
    void setRows(int rows);

    int getFrameWidth() const;
    void setFrameWidth(int frameWidth);

    int getFrameHeight() const;
    void setFrameHeight(int frameHeight);

    std::string getFileName() const;
private:
    //TODO: same as in AnimatedSprite
    int columns;
    int rows;
    int frameWidth;
    int frameHeight;
    std::string fileName;
};

typedef boost::shared_ptr<ResImage> ResImagePtr;

#endif /* ITEMDATA_H*/